﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Template.WinForm
{
    public class ColumnEntity
    {

        public ColumnEntity() { }

        /// <param name="name">名称</param>
        /// <param name="caption">标题</param>
        /// <param name="type">列的数据类型</param>
        public ColumnEntity(string name, Type type,string caption  )
        {
            this.Name = name;
            this.Caption = caption;
            this.DataType = type;
            //this.Width = width;
            //this.ColumnSpen = columnSpen;
            //this.ViewShow = viewShow;
            //this.EditShow = editShow;
        }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Caption { get; set; }

        /// <summary>
        /// 列的数据类型
        /// </summary>
        public Type DataType { get; set; }

        ///// <summary>
        ///// ViewForm中显示
        ///// </summary>
        //public bool ViewShow { get; set; } = true;

        ///// <summary>
        ///// EditForm中显示
        ///// </summary>
        //public bool EditShow { get; set; } = true;

        ///// <summary>
        ///// 列宽
        ///// </summary>
        //public int? Width { get; set; }

        ///// <summary>
        ///// 获取或设置当前控件所占列数(EditForm)
        ///// </summary>
        //public int ColumnSpen { get; set; } = 1;

    }
}
